import {
  request
} from "../utils/request";

export const login = (data) => {
  return request.post('/api/user/login', data)
}

export const fetchCode = (query) => {
  return request.get('/api/user/email', query)
} 

export const register = (data) => {
  return request.post('/api/user/register', data)
}